package com.zhuiyun.project.api.plan.fitnessPlanAction.service;

import com.zhuiyun.project.api.plan.fitnessPlanAction.entity.FitnessPlanAction;
import com.zhuiyun.project.api.plan.fitnessPlanAction.model.FitnessPlanActionModel;
import com.zhuiyun.project.api.plan.fitnessPlanActionCount.entity.FitnessPlanActionCount;
import com.zhuiyun.project.api.plan.fitnessType.entity.FitnessType;
import com.zhuiyun.project.common.errorCode.CommonException;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import com.zhuiyun.project.utils.pageUtil.PageResult;

import java.util.List;

/**
* @Author 杨珅
* @Description todo 目的业务层
* @Date 2023/11/2 9:02
* @Return  * @param null
*/
public interface FitnessPlanActionService {
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作分页查询
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    PageResult selectAll(PageRequest pageRequest,Integer fitnessPlanId,Integer fitnessTypeId,String fitnessActionName);
    /**
     * @Author 杨珅
     * @Description todo 根据目的id全查标签
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    PageResult selectTypes(PageRequest pageRequest, Integer fitnessPurposeId);
    /**
     * @Author 杨珅
     * @Description todo 查询组数
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    int selectCountAll(Integer planActionId);
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作新增
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    CommonResult insertFitnessPlanAction(FitnessPlanActionModel fitnessPlanAction)throws CommonException;
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作修改
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    CommonResult updateFitnessPlanAction(FitnessPlanAction fitnessPlanAction)throws CommonException;
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作删除
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    CommonResult deleteFitnessPlanAction(FitnessPlanAction fitnessPlanAction);
}
